from app.validators import BaseForm
from wtforms.fields import StringField, BooleanField, DateTimeField


class NewsOverViewForm(BaseForm):
    id = StringField()
    isSendNotification = BooleanField(default=False)
    isConsoleDisplay = BooleanField(default=False)
    isHomepageDisplay = BooleanField(default=False)
    isRecommendDisplay = BooleanField(default=False)
    isDraft = BooleanField(default=False)
    datetime = DateTimeField(default=False)
    author = StringField(default='')
    title = StringField()
    type = StringField()
    link = StringField()
    summary = StringField()


class NewsDetailForm(NewsOverViewForm):
    content = StringField()
